<?php
class Mageex_RelatedProduct_Model_CustomerGroup
{
	public function getCustomerGroupForForm()
	{
		$arrResult = array();
		$items = Mage::getModel('customer/group_api')->items();
		$arrResult[] = array('label'=>'All Groups',
								 'value'=>-1);
		foreach($items as $item){
			$arrResult[] = array('label'=>$item['customer_group_code'],
								 'value'=>$item['customer_group_id']);
		}
		return $arrResult;
	}
}